import { RouteType, RoutesType } from '~/types/router'

export const basicRoutes: RoutesType = [
    {
        name: 'Dashboard',
        path: '/',
        component: () => import('@/layout/index.vue'),
        redirect: '/car',
        children: [
            {
                name: 'Car',
                path: 'Car',
                component: () => import('@/views/car-manager/index.vue'),
            },
            {
                name: 'Calendar',
                path: 'Calendar',
                component: () => import('@/views/calendar-plan/index.vue'),
            },
        ],
    },
    {
        name: '404',
        path: '/404',
        component: () => import('@/views/error-page/404.vue'),
        isHidden: true,
    },
]

export const NOT_FOUND_ROUTE: RouteType = {
    name: 'NotFound',
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    isHidden: true,
}